Contents | Index | < Browse | Browse >

LETTERmemcpyULETTER Copies a memory block.

Overview
#include <string.h>

r = memcpy(dest,source,n);

void *r;
void *dest;
const void *source;
size_t n;

Portability
ANSI

Description
"memcpy" copies "n" bytes of the memory block starting at "source" to "dest". This routine does not handle overlapping memory blocks. Use memmove instead.

Returns
A pointer to the destination memory block.

See also
memmove